package com.model;

import java.util.Date;

/**
 * Productcomment entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Productcomment implements java.io.Serializable {

	// Fields

	private Long commentId;
	private Users usersDTO;
	private Product productDTO;
	private Integer point;
	private String title;
	private String content;
	private Date createtime;

	// Constructors

	/** default constructor */
	public Productcomment() {
	}

	/** minimal constructor */
	public Productcomment(Users usersDTO, Product productDTO) {
		this.usersDTO = usersDTO;
		this.productDTO = productDTO;
	}

	/** full constructor */
	public Productcomment(Users usersDTO, Product productDTO, Integer point,
			String title, String content, Date createtime) {
		this.usersDTO = usersDTO;
		this.productDTO = productDTO;
		this.point = point;
		this.title = title;
		this.content = content;
		this.createtime = createtime;
	}

	// Property accessors

	public Long getCommentId() {
		return this.commentId;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

	public Users getUsers() {
		return this.usersDTO;
	}

	public void setUsers(Users usersDTO) {
		this.usersDTO = usersDTO;
	}

	public Product getProduct() {
		return this.productDTO;
	}

	public void setProduct(Product productDTO) {
		this.productDTO = productDTO;
	}

	public Integer getPoint() {
		return this.point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

}